﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ProductByID.ascx.cs" Inherits="usercontrol_ProductByID" %>

<div class="menu">
	<div class="hc1 hc1-header">
		<div class="hc1-adverb">
			<asp:Image ID="Image9" runat="server" ImageUrl="~/images/support.png" />
		</div>
		<div class="hc1-text">
			<asp:Label ID="lblTitleGrid" runat="server" CssClass="text_header" Text="SẢN PHẨM ĐÃ CHỌN"></asp:Label>
		</div>
	</div>
	<div>
		<asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
					<asp:Label ID="lblEmpty" runat="server" Text="" Visible="false"></asp:Label>
                    <asp:DataList ID="DLProducts" runat="server" CellPadding="1" CellSpacing="1" DataKeyField="ProductID"
                       OnItemCommand="DLProducts_ItemCommand" RepeatColumns="2"
                        Width="100%" OnItemDataBound="DLProducts_ItemDataBound">
                        <ItemTemplate>
                            <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                <tr>
                                    <td colspan="3" align="center">
                                        <asp:HyperLink ID="hplTenSanPham" runat="server" CssClass="mslink" 
											Font-Bold="True" NavigateUrl='<%# "~/Apps/ProductDetail.aspx?pid=" + DataBinder.Eval(Container.DataItem,"ProductID").ToString() %>' Text='<%# Eval("ProductName") %>'></asp:HyperLink>
                                    </td>
                                </tr>
                                <tr>
									<td align="center" colspan="3">
										<a href="#" onmouseout="UnTip()" 
											onmouseover='Tip(&#039;&lt;img src=\&#039;<%# DataBinder.Eval(Container.DataItem,"SmallImageURL").ToString() %> \&#039;&#039;)'>
										<asp:Image ID="imgProduct1" runat="server" AlternateText="ProductImage" 
											Height="203px" ImageUrl='<%# Eval("SmallImageURL").ToString()%>' 
											Width="195px" />
										</a>
										<br />
									</td>
								</tr>
                                <tr>
                                    <td align="right">
                                        <asp:ImageButton ID="imgbtnAddToCart" runat="server" CommandArgument='<%# Eval("ProductID") %>'
                                            CommandName="Select" ImageUrl="~/Images/addtocart.gif" /></td>
                                    <td align="left" style="padding-left: 10px">
                                    	<asp:Label ID="Label1" runat="server" Text="Giá:"></asp:Label>
										<asp:Label ID="lblGia" runat="server" CssClass="Price" 
											Text='<%# Eval("SalePrice", "{0:0,0}") + " VNĐ" %>' 
											Visible='<%# Eval("VisablePrice") %>'></asp:Label>
                                    </td>
                                    <td>
                                    </td>
                                </tr>
                            </table>
                            <br />
                            <br />
                        </ItemTemplate>											 						                    
                    </asp:DataList>
                </ContentTemplate>
            </asp:UpdatePanel>
	</div>
	<div class="fc">
		<div class="hc1-fc"></div>
	</div>
</div>